<?php
namespace Common\Controller;
use Think\Controller;

class BaseController extends Controller {
    
    
    public function _initialize(){
        
        if (!isset($_SESSION['name'])) {
            $this->error('对不起,您还没有登录!', U('Admin/Login/index'));
        }
        
        
    }
    
    
    
  
    
}